import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import post from "@dfeidao/atom-web/msg/post";
import put from "@dfeidao/atom-web/storage/put";
import { login } from "../../atom/config";

export default async function a001(fd: IFeidaoAiBrowserComponent) {
	// todo
	const body = JSON.stringify({ usercode: '100001', userpw: '111111' });
	const info = await post(login, body);
	await put('user', info);

	window.location.href = 'wangju.html';
}
